package com.home.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.home.dao.updateDao;
import com.home.entity.consumption;

public class modifyServlet extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		this.doPost(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		int id=Integer.parseInt(request.getParameter(""));
		String name=request.getParameter("");
		consumption c=new consumption();
		c.setcId(id);
		//c.setDatetime();
		//c.setName();
		//c.setPrice();
		//c.setRemark();
		updateDao ud=new updateDao();
		boolean boo= ud.updatePrice(c);
		if(boo){
			
			
		}else{
			
			
		}
	}

}
